package test;

import java.io.IOException;

import org.jdom.Document;
import org.jdom.JDOMException;
import org.jdom.input.SAXBuilder;

import view.Mainframe;

import data.Dataexception;
import data.Datamanager;

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args)
	{
		try {
			
			data.Datamanager dm = new Datamanager();
			SAXBuilder builder = new SAXBuilder();
			Document doc;
			doc = builder.build("Attribute.data");
	
			dm.processXMLDocument(doc);
			
			System.out.println(dm);			
		}
		catch (JDOMException e)
		{
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		catch (IOException e)
		{
		} catch (Dataexception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		
		//Mainframe main = new Mainframe();
	}
}
